<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>

<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">

    <h2>当前问题或见解</h2>

    <hr>
    <!--新增用户-->
    <a th:href="@{/quizzes/new}" class="btn btn-primary bth-sm mb-3">新增问题或见解</a>
    <br>
    <table class="table table-bordered table-striped">
        <thead class="thead-dark">
        <tr>
            <th>昵称</th>
            <th>问题</th>
            <th>问题状态</th>
            <th>解决方案</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="aQuiz: ${quizzes}">
            <td th:text="${aQuiz.name}"></td>
            <td th:text="${aQuiz.question}"></td>
            <td th:text="${aQuiz.stage}"></td>
            <td th:text="${aQuiz.solution}"></td>

        </tr>
        </tbody>
    </table>
</div>
</body>

</html>